import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import Element from "element-ui"
import "element-ui/lib/theme-chalk/index.css"

// fade/zoom 等
import 'element-ui/lib/theme-chalk/base.css';
// collapse 展开折叠
import CollapseTransition from 'element-ui/lib/transitions/collapse-transition';

import animated from 'animate.css'
import * as echarts from 'echarts';


import axios from './axios'
import global from './globalFun'
import  fiter from './utils/index'

Vue.prototype.$axios = axios //
Vue.config.productionTip = false
Vue.component(CollapseTransition.name, CollapseTransition)
Vue.use(animated)

Vue.prototype.$echarts = echarts;

import * as filters from './utils/index'
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
// require("./mock.js")

Vue.use(Element)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
